{include file="public/header" /}

  
							<!--{volist name="list" id="v"}
					 
								      <h4><a href="{:url('index/article/index')}?id={$v['id']}">{$v.title}</a></h4>
								     
								      </div>{:($v.message)}</div>
								     
						{/volist}-->
 <section class="thinkask-article">
    <div class="container">
      <div class="row">

        <div class="col-lg-9">
          <div class="page page-default">  
            <div class="page-heading height clearfix">
            <h3 class="pull-left">文章</h3>
            <ul class="nav nav-tabs pull-right hidden-xs">
              <li class=" <?php if($status=="hot"){ echo "active";} ?>">
                <a href="/article/index/status/hot.html" id="sort_control_hot" >热门</a>
              </li>
              <li class=" <?php if($status=="recommend"){ echo "active";} ?>">
                <a href="/article/index/status/recommend.html" >推荐</a></li>
              <li class=" <?php if($status!="hot"&&$status!="recommend"){ echo "active";} ?>">
              <a href="/article.html"  >最新</a></li>
            </ul>
            </div>
            <div class="page-body space">
                <div class="thinkask-article-lists">
                    <ul>
                        {foreach  name='$list' id="v"}
                        <li class="list">
                          {if condition="($v['img'])"}
                            <div class="list-img hidden-xs">
                                <a href="" title="{$v['title']}">
                                    <img src="{$v['img']}" alt="{$v['title']}">
                                </a>
                            </div>
                          {/if}
                            <div class="list-content {if condition="(!$v['img'])"}block{/if}">
                                <h4 class="title"><a href="/article/{$v['id']}.html" title="">{$v['title']}</a></h4>
                                <div class="description">
                                    {:msubstr($v['message'],0,88,'utf-8')}
                                </div>
                               <div class="info clearfix">
                                <ul>
                                  <li><i class="user"></i><span>{$v.user_name}</span></li>
                                  <li><i class="time"></i><time>{$v['add_time']|date='Y-m-d',###}</time></li>
                                  <li><i cite="views"></i><span class="views">{$v.views}</span></li>
                                  <li><i cite="comment-count"></i><span class="comment-count"></span></li>
                                </ul>
                                <ul class="tags hidden-xs pull-right" style="display:none;">
                                  <li><a href=""><?php  $topic = unserialize($v['recent_topics']); echo $topic[0]; ?></a></li>
                                </ul>
                              </div>
                            </div>
                        </li>
                        {/foreach}
                    </ul>
                    {$list->render()}
                </div>
            
            </div>
          </div>
          
        </div>
        <div class="col-lg-3">
            <section class="box">
              <div class="box-heading">
                <h3>热门文章</h3>
              </div>
              <div class="box-body">
                <ul class="list-unstyled">
                {volist name="$hotarticle" id="v"}
                	<li><a href="/article/{$v['id']}.html">{$v.title}</a></li>
                  {/volist}
                </ul>
              </div>
            </section>
            <section class="box">
              <div class="box-heading">
                <h3>热门用户</h3>
              </div>
              <div class="box-body">
                <ul class="list-unstyled">
                {volist name="$hotuser" id="v"}
                  <li class="user-line"><a href=""><img src="{$v.avatar_file}"/> {$v.user_name}</a><span> 提问 1   回复 15 积分 151</span></li>
                  {/volist}
                </ul>
              </div>
            </section>
            
            <section class="box">
              <div class="box-heading">
                <h3>热门标签</h3>
              </div>
              <div class="box-body">
                <ul class="list-unstyled tags">
                {volist name="$hottag" id="v"}
                  <li><a href="javascript:;">{$v.topic_title}</a></li>
                 {/volist}
                </ul>
              </div>
            </section>
            
        </div>
      
      </div>
    </div>
</section>
{include file="public/footer" /}